import { createRouter, createWebHistory } from "vue-router";
import HomePage from "../views/HomePage.vue";
import RestaurantPage from "../views/RestaurantPage.vue";
import UserInfoPage from "../views/UserInfoPage.vue";

const routes = [
    { path: "/", name: "Home", component: HomePage },
    { path: "/restaurant", name: "Restaurant", component: RestaurantPage },
    { path: "/user", name: "User", component: UserInfoPage },
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;
